package com.reflect;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

public class FileUtil {

	public static void main(String[] args) throws IOException {
		File file = new File(FileUtil.class.getResource("listresource.json").getPath());
		FileInputStream fis = new FileInputStream(file);
		BufferedReader reader = new BufferedReader(new InputStreamReader(fis));
		String line = null;
		StringBuffer str = new StringBuffer();
		while((line = reader.readLine()) != null) {
			str.append(line);
		}
		System.out.println(str);
	}
}
